$(document).ready(function() {
	  	$("#login_form").validate({
  		errorElement: "span",
	    rules: {
	    	uname:{
	    		 required: true,
	    	},
	    	pwd:{
	    		required:true,
	    	},
	    	valcode: {
		        required: true,
		    }
		},
		messages: {
			uname:{
	    		required: "请输入账户",
	    	},
	    	pwd:{
	    		required: "请输入密码",
	    	},
	    	valcode: {
		        required: "请输入验证码",
		    }
		}
	});
})


function selchange(id){
	var select = document.getElementById(id);
	var uid=document.getElementById("UID");
	var l_c=select.value;
	switch (l_c){
		case "Stu":
			uid.innerHTML="学号";
			break;
		case "Tea":
			uid.innerHTML="工号";
			break;
		case "Sys":
			uid.innerHTML="账号";
			break;
	}
}


